/**
 * Copyright 2014 ABSir's Studio
 * 
 * All right reserved
 *
 * Create on 2014年11月21日 下午2:24:58
 */
package com.absir.appserv.game.bean;

import javax.persistence.MappedSuperclass;

import com.absir.appserv.system.bean.base.JbBeanLL;
import com.absir.appserv.system.bean.value.JaLang;
import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * @author absir
 *
 */
@MappedSuperclass
public abstract class JbFriend extends JbBeanLL {

	@JaLang("关注")
	private boolean follow;

	@JaLang("被关注")
	private boolean targetFollow;

	/**
	 * @return the follow
	 */
	public boolean isFollow() {
		return follow;
	}

	/**
	 * @param follow
	 *            the follow to set
	 */
	public void setFollow(boolean follow) {
		this.follow = follow;
	}

	/**
	 * @return the targetFollow
	 */
	public boolean isTargetFollow() {
		return targetFollow;
	}

	/**
	 * @param targetFollow
	 *            the targetFollow to set
	 */
	public void setTargetFollow(boolean targetFollow) {
		this.targetFollow = targetFollow;
	}

	// 角色对象
	@JsonIgnore
	public abstract JbPlayer getTargetPlayer();

	public abstract void setTargetPlayer(JbPlayer targetPlayer);
}
